<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
	  
    </h:head>
    <body>
        <p:dataList paginator="true" paginatorAlwaysVisible="3" var="homework" value="#{CourseBean.courseHomework}">
		<p:column>
		    <h:form>
		    <h:panelGrid columns="2">
			  <h:outputLabel value="Teslim Tarihi: "/>
                          <h:outputLabel value="#{homework.date.toLocaleString()}"/>
                           <h:outputLabel value="Detaylar: "/>
			  <h:outputLabel value="#{homework.text}"/>
			  <p:commandLink ajax="false" value="Ödevi gör" action="#{HomePageBean.clickHomework()}">
				<f:setPropertyActionListener value="#{homework}" target="#{HomeworkBean.target}"/>
			  </p:commandLink>
		    </h:panelGrid>
		    </h:form>
		</p:column>
	  </p:dataList>
    </body>
</html>
